Skip to content

Conversation

@original-brownbear
Copy link
Contributor

Closing an xcontent builder in general also closes the underlying stream. The only reason this worked was that we were always using the no-pooling BigArrays which also makes the use of the circuit breaker a noop here. Found this when trying to optimize the releasable bytes stream and seeing it break.
=> just move the non-pooled bytes stream to simplify things

Closing an xcontent builder in general also closes the underlying stream.
The only reason this worked was that we were always using the no-pooling `BigArrays`
which also makes the use of the circuit breaker a noop here.
Found this when trying to optimize the releasable bytes stream and seeing it
break.
=> just move the non-pooled bytes stream to simplify things
Copy link
Member

@carlosdelest carlosdelest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks Armin!

@original-brownbear
Copy link
Contributor Author

npnp thanks Carlos!

@original-brownbear original-brownbear merged commit 4343d15 into elastic:main May 9, 2025
16 checks passed
@original-brownbear original-brownbear deleted the fix-searchapplication branch May 9, 2025 09:35
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request May 12, 2025
Closing an xcontent builder in general also closes the underlying stream.
The only reason this worked was that we were always using the no-pooling `BigArrays`
which also makes the use of the circuit breaker a noop here.
Found this when trying to optimize the releasable bytes stream and seeing it
break.
=> just move the non-pooled bytes stream to simplify things
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants